package com.hp.service.impl;

import com.hp.entity.MedicalExamination;
import com.hp.entity.MedicalRecord;
import com.hp.mapper.MedicalExaminationMapper;
import com.hp.service.MedicalExaminationService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class MedicalExaminationServiceImpl implements MedicalExaminationService {
    @Resource
     private MedicalExaminationMapper medicalExaminationMapper;
    @Override
    public List<MedicalExamination> findAll(MedicalExamination medicalExamination) {
        return medicalExaminationMapper.findAll(medicalExamination);
    }

    @Override
    public MedicalExamination findById(MedicalExamination medicalExamination) {
        return medicalExaminationMapper.findById(medicalExamination);
    }

    @Override
    public int delete(String[] id) {
        return medicalExaminationMapper.delete(id);
    }

    @Override
    public int add(MedicalExamination medicalExamination) {
        return medicalExaminationMapper.add(medicalExamination);
    }

    @Override
    public int update(MedicalExamination medicalExamination) {
        return medicalExaminationMapper.update(medicalExamination);
    }
}
